from django.db import models

# Create publisher models here.


class Publisher(models.Model):
    """ 出版社类 """
    name = models.CharField(max_length=32)
    address = models.CharField(max_length=100)
    city = models.CharField(max_length=32)
    state_province = models.CharField(max_length=32)
    country = models.CharField(max_length=20)
    website = models.URLField()

    def __str__(self):
        return self.name

    class Meta:
        verbose_name = '出版社'
        verbose_name_plural = '出版社'
